package fcc.Seng462project.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.IdentityType;

import fcc.Seng462project.shared.PMF;

@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class UserDB {
	
	//@PrimaryKey
	//@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
	//private Long id;
	@PrimaryKey
	@Persistent
	private String emailAddress;
	
	@Persistent
	private String password;
	
	public UserDB(){
		
	}
	public UserDB(String emailAddress, String password){
		this.emailAddress=emailAddress;
		this.password=password;
		
	}
	//set user email address
	public void setEmailAddress(String emailAddress){
		this.emailAddress=emailAddress;
	}
   //get user email address
	public String getEmailAddress(){
		return emailAddress;
	}
   //store password
	public void setPassword(String password){
		this.password=password;
	}
   //get user's password
	public String getPassword(){
		return password;
	}
	


}
